const KoaRouter = require('@koa/router')
const { handleJournal } = require('../middleware/uploadMiddleware.js')
const { create } = require('../controller/uploadController.js')
const uploadRouter = new KoaRouter({prefix:'/upload'})


uploadRouter.post('/journal_photo' , handleJournal , create )

module.exports = uploadRouter